import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import * as $axios from './api/index'
Vue.use(Element)

import Element from 'element-ui'
import './assets/element-variables.scss'

Vue.use(Element)

Vue.directive("time",{
  inserted:function(el,binding){
      var time = new Date(parseInt(binding.value)).toLocaleString().replace(/:\d{1,2}$/,' ')
      el.innerHTML=time
      console.log(time)
  }
})
Vue.prototype.$api=$axios

Vue.use(ElementUI);
Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
